package pojo;

import java.io.Serializable;



public class ChessOnlineRoom implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3353208371858337173L;
	private int mRoomId;
	private String mRoomName;
	private UserAccount mPlayerA;
	private UserAccount mPlayerB;
	private int mScore;
	private boolean mIsLeague;
	private int mLeagueId;
	public int getLeagueId() {
		return mLeagueId;
	}

	public void setLeagueId(int leagueId) {
		this.mLeagueId = leagueId;
	}

	private int mWorkerIdA;
	private int mWorkerIdB;
	public ChessOnlineRoom(int roomId, String name, UserAccount playerA, UserAccount playerB, 
			int score, boolean isLeague, int leagueId, int workerIdA,int workerIdB) {
		this.mRoomId = roomId;
		this.mRoomName = name;
		this.mPlayerA = playerA;
		this.mPlayerB = playerB;
		this.mScore = score;
		this.mIsLeague = isLeague;
		this.mLeagueId = leagueId;
		this.mWorkerIdA = workerIdA;
		this.mWorkerIdB = workerIdB;
	}

	public int getmWorkerIdA() {
		return mWorkerIdA;
	}

	public void setmWorkerIdA(int mWorkerIdA) {
		this.mWorkerIdA = mWorkerIdA;
	}

	public int getmWorkerIdB() {
		return mWorkerIdB;
	}

	public void setmWorkerIdB(int mWorkerIdB) {
		this.mWorkerIdB = mWorkerIdB;
	}

	public int getRoomId() {
		return mRoomId;
	}

	public void setRoomId(int mRoomId) {
		this.mRoomId = mRoomId;
	}

	public UserAccount getPlayerA() {
		return mPlayerA;
	}

	public void setPlayerA(UserAccount mPlayerA) {
		this.mPlayerA = mPlayerA;
	}

	public UserAccount getPlayerB() {
		return mPlayerB;
	}

	public void setPlayerB(UserAccount mPlayerB) {
		this.mPlayerB = mPlayerB;
	}

	public int getScore() {
		return mScore;
	}

	public void setScore(int mScore) {
		this.mScore = mScore;
	}

	public boolean isLeague() {
		return mIsLeague;
	}

	public void setLeague(boolean isLeague) {
		this.mIsLeague = isLeague;
	}

	public String getmRoomName() {
		return mRoomName;
	}

	public void setmRoomName(String mRoomName) {
		this.mRoomName = mRoomName;
	}
}
